/*
** my.h for bourseProject in /home/ralph/bourseProject/include
** 
** Made by Ralph
** Login   <ralph@epitech.net>
** 
** Started on  Mon Nov 26 15:47:06 2012 Ralph
** Last update Thu Nov 29 15:20:15 2012 Ralph
*/

#ifndef		MY_H_
# define	MY_H_

# include	<unistd.h>
# include	<stdio.h>
# include	<stdlib.h>
# include	<sys/types.h>
# include	<sys/stat.h>
# include	<sys/wait.h>
# include	<dirent.h>
# include	<signal.h>
# include	<fcntl.h>
# include	<string.h>

/*
** PROTOTYPES
*/

void		my_putchar(char c);
void		my_putstr(char *str);
void		my_show_tab(char **tab);
void		*xmalloc(int size);
void		get_to_wordtab(const int fd);
void		deleteHtml(char *fileName);
void		stockPrices(char *file);
void		printTitle(char *line);
void		printQuote(char *line);
void		printVariation(char *line);
void		printVolume(char *line);

char		*my_strdup(char *src);
char		*get_next_line(const int fd);
char		*mySubStr(char *src, int pos, int len);
char		*get_line(char *line);
char		*downloadPage(char *indice);
char		*epurLine(char *line);

int		xopen(char *pathname, int flags);
int		isActionLine(char *line);
int		isMaj(char c);
int		isNum(char c);
int		istdLine(char *line);
int		istitleLine(char *line);

#endif
